<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改生肖吉凶')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-shenxiao-edit" th:object="${shengXiao}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">生肖：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">六合生肖：</label>
                <div class="col-sm-8">
                    <input name="liuhe" th:field="*{liuhe}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">三合生肖：</label>
                <div class="col-sm-8">
                    <input name="sanhe" th:field="*{sanhe}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">相克生肖：</label>
                <div class="col-sm-8">
                    <input name="xiangke" th:field="*{xiangke}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">本命佛：</label>
                <div class="col-sm-8">
                    <input name="benmingfo" th:field="*{benmingfo}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">性格分析：</label>
                <div class="col-sm-8">
                    <textarea name="detail" class="form-control" required rows="5">[[*{detail}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">幸运花：</label>
                <div class="col-sm-8">
                    <input name="xingyunhua" th:field="*{xingyunhua}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">吉祥色：</label>
                <div class="col-sm-8">
                    <input name="jixiangse" th:field="*{jixiangse}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">禁忌色：</label>
                <div class="col-sm-8">
                    <input name="jise" th:field="*{jise}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">幸运数字：</label>
                <div class="col-sm-8">
                    <input name="xingyunshuzi" th:field="*{xingyunshuzi}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">禁忌数字：</label>
                <div class="col-sm-8">
                    <input name="jishuzi" th:field="*{jishuzi}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">五行：</label>
                <div class="col-sm-8">
                    <input name="wuxing" th:field="*{wuxing}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">五常：</label>
                <div class="col-sm-8">
                    <input name="wuchang" th:field="*{wuchang}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "naming/shenxiao";
        $("#form-shenxiao-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-shenxiao-edit').serialize());
            }
        }
    </script>
</body>
</html>